package com.dobest.securitydemo3.dao;

import com.dobest.securitydemo3.domain.Role;
import com.dobest.securitydemo3.domain.UserRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Copyright © 2018胡建松. All rights reserved.
 *
 * @Package: com.dobest.securitydemo3.dao
 * @author: hujiansong
 * @date: 2018/7/20 15:50
 * @version: V1.0
 */
@Repository
public interface UserRoleRepository extends JpaRepository<UserRole, Integer> {

    List<UserRole> findAllByUserId(int userId);
}
